<template>
	<view class="box">
		<uNavbar title="售卖方详情" ></uNavbar>
		<!--我接收的 -->
		<view class="main" >
			<view class="main_from_top">
				<image :src="info.goods_image" mode="aspectFill"></image>
				<view class="name">
					{{info.goods_name}}
				</view>
				<view class="text">
					{{info.brand_name}}
				</view>
				<view class="tag_wrap">
					<view class="tag">
						编号
					</view>
					<view class="tag_num">
						{{info.goods_number}}/{{info.circulation}}
					</view>
				
				</view>
				<!-- <view class="price">
					<image v-if="info.pay_type==3" src="../../static/icon/i_money.png" mode=""></image>
					<image v-if="info.pay_type==4" src="../../static/icon/i_ys.png" mode=""></image>
					{{item.price}}
				</view> -->
			</view>
<!-- 			<view class="main_btn_wrap">
				<view class="zz_btn">
					转赠
				</view>
				<view class="gm_btn">
					挂卖
				</view>
			</view> -->
		</view>

			<view class="main_from">
				<view class="main_from_bottom">
					<view class="title">
						订单信息
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">订单金额</text>
						<text>
							<image v-if="info.pay_type==3" style="width: 24rpx;height: 24rpx;margin-right: 4rpx;" src="/static/icon/i_money.png" mode=""></image>
							<image v-if="info.pay_type==4" style="width: 30rpx;height: 20rpx;margin-right: 4rpx;" src="/static/image/fhyb.png" mode=""></image>
							{{info.order_price}}</text>
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">手续费</text>
						<text>
							
							{{info.service_fee}}</text>
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">到账金额</text>
						<text>
							
							{{info.actual_price}}</text>
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">订单编号</text>
						<text>{{info.rent_sn}}</text>
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">付款时间</text>
						<text>{{info.pay_time}}</text>
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">卖家昵称</text>
						<text>{{info.seller_name}}</text>
					</view>
					<view class="main_from_bottom_item">
						<text style="color: #A6A5AF;">买家昵称</text>
						<text>{{info.buyer_name}}</text>
					</view>
				</view>
			</view>
		<view style="width: 750rpx;height: 40rpx;">
			
		</view>
	</view>

</template>

<script>
	import {rentorderInfo} from "../../api/order.js"
	export default {
		data() {
			return {
				id:"",
				info:{}
			}
		},
		onLoad(options) {
			console.log(options)
			this.id=options.id
			this.getinfo()
		},
		methods: {
			getinfo(){
				rentorderInfo({
					id:this.id
				}).then(res=>{
					this.info=res.data
					console.log(this.info,"详情")
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 750rpx;
		height: 100vh;
		background-color:#E0DDDA;
		position: relative;
	}

	.main_from {
		width: 690rpx;
		height: 472rpx;
		background:#F2EFEC;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0 auto;
		margin-top: 40rpx;


		.main_from_bottom {
			width: 630rpx;
			height: 420rpx;
			margin: 0 auto;
			display: flex;
			flex-direction: column;
			justify-content: space-around;

			.title {
				font-size: 32rpx;
				color: #333;
				margin-bottom: 10rpx;
			}

			.main_from_bottom_item {
				display: flex;
				justify-content: space-between;
				margin-bottom: 10rpx;

				>text {
					font-size: 26rpx;
					color: #A7A4AD;
				}
			}
		}
	}

	.main {
		width: 690rpx;
		height: 314rpx;
		background:#F2EFEC;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0 auto;
		margin-top: 30rpx;
	}

	.main_from_top {
		margin: 0 auto;
		width: 630rpx;
		height: 220rpx;
		border-bottom: 2rpx solid rgba(216, 216, 216, 0.1);
		position: relative;
		background-color: #F2EFEC;

		// border-radius: 16rpx 16rpx 16rpx 16rpx;
		>image {
			width: 154rpx;
			height: 154rpx;
			border-radius: 20rpx 20rpx 20rpx 20rpx;
			margin-top: 30rpx;
		}

		.name {
			width: 300rpx;
			position: absolute;
			top: 36rpx;
			left: 192rpx;
			font-weight: 400;
			font-size: 32rpx;
			color: #333;
			white-space: nowrap;
			/* 不换行 */
			overflow: hidden;
			/* 超出部分隐藏 */
			text-overflow: ellipsis;
			/* 显示省略号 */
		}

		.text {
			width: 260rpx;
			position: absolute;
			top: 86rpx;
			left: 192rpx;
			font-weight: 400;
			font-size: 24rpx;
			color: #A6A5AF;
			white-space: nowrap;
			/* 不换行 */
			overflow: hidden;
			/* 超出部分隐藏 */
			text-overflow: ellipsis;
			/* 显示省略号 */
		}

		.price {
			position: absolute;
			top: 80rpx;
			right: 20rpx;
			display: flex;
			align-items: center;

			>image {
				width: 28rpx;
				height: 28rpx;
				margin-right: 6rpx;
			}

			font-size: 32rpx;
			color: #A68A64;
		}

		.tag_wrap {
			width: 300rpx;
			position: absolute;
			top: 146rpx;
			left: 192rpx;
			font-weight: 400;
			font-size: 24rpx;
			color: #A6A5AF;
			white-space: nowrap;
			/* 不换行 */
			overflow: hidden;
			/* 超出部分隐藏 */
			text-overflow: ellipsis;
			display: flex;

			/* 显示省略号 */
			.tag {
				width: 64rpx;
				height: 36rpx;
				background: linear-gradient( 90deg, #AB8E68 0%, #D7BA93 100%);
				border-radius: 6rpx 6rpx 6rpx 6rpx;
				font-size: 22rpx;
				color: #FFFFFF;
				text-align: center;
				line-height: 36rpx;
			}

			.tag_num {
				width: 150rpx;
				height: 36rpx;
				background: #DAD1C6;
				border-radius: 6rpx 6rpx 6rpx 6rpx;
				text-align: center;
				line-height: 36rpx;
				font-size: 24rpx;
				color: #FFFFFF;
			}

		}

		.tip {
			position: absolute;
			top: 74rpx;
			right: 0rpx;
			font-size: 36rpx;
			color: #FF2CDF;
		}
	}

	.main_btn_wrap {
		width: 630rpx;
		height: 100rpx;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: flex-end;

		.zz_btn {
			width: 122rpx;
			height: 52rpx;
			border-radius: 536rpx 536rpx 536rpx 536rpx;
			border: 2rpx solid #A6A5AF;
			font-size: 26rpx;
			color: #A7A4AD;
			text-align: center;
			line-height: 52rpx;
		}

		.gm_btn {
			width: 122rpx;
			height: 52rpx;
			border-radius: 536rpx 536rpx 536rpx 536rpx;
			border: 2rpx solid #FF2CDF;
			font-size: 26rpx;
			color: #FF2CDF;
			text-align: center;
			line-height: 52rpx;
			margin-right: 30rpx;
			margin-left: 30rpx;
		}

	}
</style>